<?php

namespace app\api\model\scenic;

use think\Model;


class ScenicTickets extends Model
{

    

    

    // 表名
    protected $name = 'scenic_tickets';
    
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'integer';

    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = false;
    protected $deleteTime = false;

    // 追加属性
    protected $append = [
        //'type_text'
    ];


    /*public function getTypelList()
    {
        return [1=>'成人票',2=>'亲子票',3=>'老人票',4=>'团体票',5=>'残疾人票',6=>'其他'];
    }

    public function getTypeTextAttr($value, $data)
    {
        $value = $value ?: ($data['type'] ?? '');
        $list = $this->getTypelList();
        return $list[$value] ?? '';
    }*/







}
